﻿#ifndef FLOWCHARTWIDGET_H
#define FLOWCHARTWIDGET_H

#include "FlowView.h"
#include "ShapeManager.h"
#include <QWidget>
#include <QScrollArea>



//整个绘图窗口类
class FlowChartWidget : public QWidget
{
    Q_OBJECT
public:
    explicit FlowChartWidget(QWidget* parent = nullptr);

    // 缩放控制接口
    //void adjustScrollOnZoom(float newZoom, const QPointF& mousePos);

protected:
    void resizeEvent(QResizeEvent* event);
    
private:
    void centerView();

    QScrollArea* m_scrollArea;
    FlowView* m_flowView;
};

#endif // FLOWCHARTWIDGET_H